package com.note.simpleshop.module.goods.vo;

import com.note.simpleshop.entity.TbSpecOption;

import java.io.Serializable;

public class SpecOptionVo implements Serializable {
    private String id;
    private String specId;
    private String name;
    private String goodsId;
    private Integer sort;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getSpecId() {
        return specId;
    }

    public void setSpecId(String specId) {
        this.specId = specId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getGoodsId() {
        return goodsId;
    }

    public void setGoodsId(String goodsId) {
        this.goodsId = goodsId;
    }

    public Integer getSort() {
        return sort;
    }

    public void setSort(Integer sort) {
        this.sort = sort;
    }
    public static SpecOptionVo copy(TbSpecOption specOption)
    {
        SpecOptionVo vo=new SpecOptionVo();
        vo.id=specOption.getId();
        vo.specId=specOption.getSpecId();
        vo.name=specOption.getName();
        vo.sort=specOption.getSort();
        vo.goodsId=specOption.getGoodsId();
        return vo;
    }
}
